/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const marketRouter = {
  path: '/market',
  component: Layout,
  name: '营销活动',
  meta: {
    title: '营销活动',
    subtitle:'营销',
    icon: 'menu_market'
  },
  children: [
    {
      path: '/coupon/list',
      component: () => import('@/views/coupon/list'),
      name: 'coupon-list',
      meta: { title: '优惠券' ,subtitle:'优惠',icon: 'menu_coupon',permissions:['coupon.query']}
    },
    {
      path: '/coupon/add',
      component: () => import('@/views/coupon/add'),
      name: 'coupon-add',
      meta: { title: '新增优惠券' ,icon: 'menu_coupon'},
      hidden: true
    },
    {
      path: '/coupon/edit',
      component: () => import('@/views/coupon/edit'),
      name: 'coupon-edit',
      meta: { title: '修改优惠券' ,icon: 'menu_coupon'},
      hidden: true
    },
    {
      path: '/promotion/list',
      component: () => import('@/views/promotion/list'),
      name: 'promotion-list',
      meta: { title: '全场活动' ,subtitle:'活动',icon: 'menu_promotion',permissions:['promotion.query']}
    },
    {
      path: '/promotion/add',
      component: () => import('@/views/promotion/add'),
      name: 'promotion-add',
      meta: { title: '新增全场活动' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/promotion/edit',
      component: () => import('@/views/promotion/edit'),
      name: 'promotion-edit',
      meta: { title: '修改全场活动' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/springscreen/list',
      component: () => import('@/views/springscreen/list'),
      name: 'springscreen-list',
      meta: { title: '弹屏活动' ,subtitle:'活动',icon: 'menu_promotion',permissions:['springscreen.query']}
    },
    {
      path: '/springscreen/add',
      component: () => import('@/views/springscreen/add'),
      name: 'springscreen-add',
      meta: { title: '新增弹屏活动' ,icon: 'menu_promotion'},
      hidden: true
    },
    {
      path: '/springscreen/edit',
      component: () => import('@/views/springscreen/edit'),
      name: 'springscreen-edit',
      meta: { title: '修改弹屏活动' ,icon: 'menu_promotion'},
      hidden: true
    },
    // {
    //   path: '/productPromotion/list',
    //   component: () => import('@/views/productPromotion/list'),
    //   name: 'productPromotion-list',
    //   meta: { title: '单品活动' ,subtitle:'活动',icon: 'menu_promotion', permissions: ['product-promotion.query']}
    // },
    // {
    //   path: '/productPromotion/add',
    //   component: () => import('@/views/productPromotion/add'),
    //   name: 'productPromotion-add',
    //   meta: { title: '新增单品活动' ,icon: 'menu_promotion'},
    //   hidden: true
    // },
    // {
    //   path: '/productPromotion/edit',
    //   component: () => import('@/views/productPromotion/edit'),
    //   name: 'productPromotion-edit',
    //   meta: { title: '修改单品活动' ,icon: 'menu_promotion'},
    //   hidden: true
    // },

  ]
}
export default marketRouter
